package com.woniuxy.charin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.charin.model.entity.Event;
import com.woniuxy.charin.model.request.EventRequest;
import com.woniuxy.charin.model.vo.EventDetailVo;

import java.util.Date;
import java.util.List;

/**
 * @author WH
 * @description 针对表【event】的数据库操作Service
 * @createDate 2024-12-25 10:30:20
 */
public interface EventService extends IService<Event> {
    void addRisk(Event event);

    Page<EventDetailVo> pageRisk(Integer pageNum, Integer pageSize, List<Integer> chargingPileIds, Date startDate, Date endDate);

    void editRisk(EventRequest request);

    void retracteRisk(Long[] eventIds, String returnCause);

    EventDetailVo getRiskDetail(Integer riskId);

    Page<EventDetailVo> pageFault(Integer pageNum, Integer pageSize, List<Integer> chargingPileIds, Date startDate, Date endDate);

    void editFault(EventRequest request);

    void addFault(Event event);
}
